package com.demo.pattern.method;

/**
 * @author linchong
 * @version 1.0
 * @Date: 2022-05-11 22:42
 * @Description: FactoryMethodDemo$
 */
public class FactoryMethodDemo {

	public static void main(String[] args) {
		MouseFactory methodFactory = new HpMouseFactory();
		methodFactory.createMouse().sayHi();

		methodFactory = new IBMMouseFactory();
		methodFactory.createMouse().sayHi();

	}
}
